package com.nova.edc.service.energy;

import com.nova.edc.model.energy.Gather;
import com.nova.edc.model.system.AreaPoint;
import com.nova.frame.dao.pager.Page;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/3/2 0002.
 */
public interface GatherService {

    //根据节点及时间查询状态明显
    List<Gather> findAllToday(String yesterday, String today, List<AreaPoint> areaPoints);

    List<Gather> findOneToday(String yesterday, String today, AreaPoint areaPoint, Integer state);

    void insertData(String yesterday, String today, List<AreaPoint> areaPoints);

    List<Gather> findEveryHour(String gatewayid, Integer sensorid, Integer channelid, String startTime, String endTime);

    List<Gather> findExampleOnedate(String date, Gather gather);

    List<Gather> disposeforchart(List<Gather> gathers, String endDate);

    List<Map<String, Object>> getWarning(Page page, String date, Integer state, List<String> customerGateway, Integer errorTimes, String typeName);

    List<Map<String, Object>> getAllnight(Page page, String date, Integer state, List<String> customerGateway, String limitTime, String typeName);

    void getAllnightTime(String limitTime, Integer state, String date, List<Map<String, Object>> list);

    void getAllnightTime(String limitTime, Integer state, String date, Map<String, Object> map);

    List<Map<String, Object>> getDataMissed(Page page, String date, Integer state, List<String> customerGateway, Integer picketTime);

}
